param(
  [string]$BaseUrl = 'http://localhost:8081',
  [string]$UserId = 'USER00001',
  [string]$ResearchObjective = 'Develop medical HMI module; response<200ms; ASR>=95%; prototype+tech plan',
  [string]$TechnologyField = 'AI,Healthcare,IT',
  [string]$ResourceTypeSelection = '科研专家,科技成果,仪器设备,实验基地,其他资源',
  [string]$CooperationForm = '技术合作,联合研发'
)
$headers = @{ 'Content-Type' = 'application/json' }
$payload = @{ 
  userId = $UserId;
  researchObjective = $ResearchObjective;
  technologyField = $TechnologyField;
  resourceTypeSelection = $ResourceTypeSelection;
  cooperationForm = $CooperationForm
} | ConvertTo-Json
$url = "$BaseUrl/api/demands"
$resp = Invoke-RestMethod -Method Post -Uri $url -Headers $headers -Body $payload
$resp | ConvertTo-Json -Depth 10